home *** CD-ROM | disk | FTP | other *** search
- property objMisc, iPrefsFolder
-
- on birth me
- if objectp(objMisc) then
- objMisc(mdispose)
- end if
- if the machineType < 256 then
- set objMisc to MISC_X(mnew)
- set iPrefsFolder to objMisc(mPrefsFolder)
- else
- openXLib("Misc_x.dll")
- set objMisc to MISC_X(mnew)
- set iPrefsFolder to objMisc(mWindowsDirectory)
- end if
- return me
- end
-
- on mClose me
- objMisc(mdispose)
- if the machineType < 256 then
- else
- closeXLib("Misc_x.dll")
- end if
- end
-
- on mGetPreferenceFolder me
- return iPrefsFolder
- end
-
- on mFolderExists me, tFolderPath
- return objMisc(mFolderExists, tFolderPath)
- end
-
- on mInsureFolder me, tFolderPath
- return objMisc(mInsureFolder, tFolderPath)
- end
-
- on mFileExists me, tFilePath
- return objMisc(mFileExists, tFilePath)
- end
-
- on mAnswer me, tQuestion, tLeftButtonName, tMiddleButtonName, tRightButtonName
- return objMisc(mAnswer, tQuestion, tLeftButtonName, tMiddleButtonName, tRightButtonName)
- end
-
- on mAsk me, tQuestion, tDefaultText, tOKButtonName, tCancelButtonName
- return objMisc(mAsk, tQuestion, tDefaultText, tOKButtonName, tCancelButtonName)
- end
-
- on mGetFolderList me, tFolderPath
- return objMisc(mFolderList, tFolderPath)
- end
-
- on mFlushActions me
- objMisc(mFlushActions)
- end
-
- on mGetMegaBytes me, tBytes
- set tTemp to the floatPrecision
- set the floatPrecision to 2
- set tMegs to tBytes / 1024 / 1024
- set the floatPrecision to tTemp
- return tMegs
- end
-
- on mGetGigaBytes me, tBytes
- set tTemp to the floatPrecision
- set the floatPrecision to 2
- set tGigs to tBytes / 1024 / 1024 / 1024
- set the floatPrecision to tTemp
- return tGigs
- end
-